package com.sino.dao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.sino.business.service.BasicInfoServiceImp;
public class test extends HibernateDaoSupport{
	public static BasicInfoServiceImp getBean(ApplicationContext ctx){
		return (BasicInfoServiceImp) ctx.getBean("basicInfoServiceImp");
	}

	public static void main(String[] args) {
		 ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
		 BasicInfoServiceImp  aa = test.getBean(ctx);
		 String s = aa.validateLogin("123zlh", "qq");
		 System.out.println(s);
		 
	}
}